var e = require("../../@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", { value: !0 }),
  (exports.default = void 0);
var t = require("../../@babel/runtime/helpers/classCallCheck"),
  o = require("../../@babel/runtime/helpers/createClass"),
  r = e(require("../common/DeepClone")),
  n = e(require("../Location/LocationHelper")),
  i = (function () {
    function e(o) {
      t(this, e), (this.floorMapper = o);
      var r = n.default.getEngine().cm.hdl;
      this.loader = new r({ floorMapper: o });
    }
    return (
      o(e, [
        {
          key: "loadData",
          value: function () {
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : {},
              o = arguments.length > 2 ? arguments[2] : void 0,
              n = arguments.length > 3 ? arguments[3] : void 0,
              i = arguments.length > 4 ? arguments[4] : void 0;
            this.loader.loadData(
              (0, r.default)(e),
              (0, r.default)(t),
              o,
              (0, r.default)(n),
              this.floorMapper,
              i,
            );
          },
        },
        {
          key: "connection",
          get: function () {
            return this.loader.connection;
          },
        },
        {
          key: "roads",
          get: function () {
            return this.loader.roads;
          },
        },
        {
          key: "pathInfo",
          get: function () {
            return this.roads && this.connection
              ? { roads: this.roads, connection: this.connection }
              : null;
          },
        },
      ]),
      e
    );
  })();
exports.default = i;
